package com.wft.chepter07;

import java.util.Random;

public class TestRandom {
    public static void main(String[] args) {
        Random r1 = new Random(50);
        System.out.println(r1.nextBoolean());
        System.out.println(r1.nextInt());
        System.out.println(r1.nextBoolean());
        System.out.println(r1.nextInt());
        System.out.println(r1.nextDouble());
        System.out.println(r1.nextDouble());
        System.out.println(r1.nextGaussian());
        System.out.println(r1.nextGaussian());

        System.out.println("==============================");
        Random r2 = new Random(50);
        System.out.println(r2.nextBoolean());
        System.out.println(r2.nextBoolean());
        System.out.println(r2.nextInt());
        System.out.println(r2.nextInt());
        System.out.println(r2.nextDouble());
        System.out.println(r2.nextDouble());
        System.out.println(r2.nextGaussian());
        System.out.println(r2.nextGaussian());
    }
}
